<?php
/**
 * FPDF creator framework for XOOPS
 *
 * Supporting multi-byte languages as well as utf-8 charset
 *
 * @copyright       The XOOPS project http://sourceforge.net/projects/xoops/
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @author          Taiwen Jiang <phppp@users.sourceforge.net>
 * @since           1.00
 * @version         $Id$
 * @package         Frameworks
 * @subpackage      fpdf
 */

if (!defined('XOOPS_ROOT_PATH')) { exit(); }
$xoopsLogger->activated = false;

define('FPDF_PATH', dirname(__FILE__));
define('FPDF_FONTPATH', FPDF_PATH . '/font/');

/**
 * Set PDF maker cache policy
 * 
 * Cache value $xoopsOption["pdf_cache"] can be set in module/dirname/pdf.php; if not, set below
 *
 * Possible cache values:
 * 0 - no cache
 * -1 - update cache upon content change verified by md5
 * positive integer - seconds
 */
if (!isset($GLOBALS["xoopsOption"]["pdf_cache"])) {
    $GLOBALS["xoopsOption"]["pdf_cache"] = -1;
}

require_once FPDF_PATH . '/xoopspdf.php';
?>